package com.yanqu.xiuxian.config.elementalbonds.enums;

public enum ElementalBondsFunctionType {

    NO_SEASON_NO_OUT_TIME_MATCH_NPC(1, 100, "无赛季无法超时匹配人机"),
    NO_SEASON_MATCH(2, 100, "无赛季匹配"),
    DAY_SURRENDER_LIMIT(3, 100, "每日投降次数限制"),
    TIRED_BUFF(4, 100, "疲劳BUFF"),
    CONTINUE_WIN_BUFF(5, 100, "连胜BUFF"),
    JIN_BIAO_CONTINUE_WIN_BUFF(6, 100, "锦标赛连胜BUFF"),
    PAN_MIAN_JI_ZHI(7, 110, "盘面机制总开关"),
    CHANGE_SKILL(8, 120, "可更换盘面技能"),
    NEW_BOX_CONFIG(9, 120, "新版宝箱配置"),
    ;

    private final int type;
    private final int needVer;
    private final String desc;

    ElementalBondsFunctionType(int type, int needVer, String desc) {
        this.type = type;
        this.needVer = needVer;
        this.desc = desc;
    }

    public boolean isOpen(int curVer) {
        return curVer >= needVer;
    }

    public int getType() {
        return type;
    }

    public int getNeedVer() {
        return needVer;
    }

    public String getDesc() {
        return desc;
    }

}
